<?php
namespace imcat;
require '../incs/func.php';
$outs = read('outdb', 'ex');
$cdemo = $outs['demodata'];
dump($cdemo);
?>
<!DOCTYPE html><html><head>
<?php glbHtml::page('init'); ?>
<title>db外部数据调用</title>
<style type="text/css">
</style>
</head>
<body>
<h3>db外部数据调用</h3>
<?php
$db = glbDBObj::dbObj($cdemo);
$res = $db->table('infonews',1)->limit(5)->select();
dump($res);
?>
</body>
</html>
-End-